#pragma once

#include "DockPaneWnd.h"
#include "DockingPane.h"
/////////////////////////////////////////////////////////////////////////////
// CScriptOutputPane window

class CMyEdit: public CXTPEdit
{
public:
	virtual LRESULT WindowProc(UINT32 message, WPARAM wParam, LPARAM lParam);
};


class CScriptOutputPane : public CDockingPaneWnd
{
	// Construction
public:
	CScriptOutputPane();

	// Attributes
public:
	CMyEdit				m_wndOutput;

	CXTPToolBar			m_wndToolBar;

	LRESULT OnDblClk(WPARAM, LPARAM);

	void	AddText(CString strText);
	virtual HRESULT OnUpdate();
	virtual void	Delete();

	virtual CString GetName() { return _T("Output"); }

	afx_msg void OnClearAll();

	// Operations
public:

	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CScriptOutputPane)
	//}}AFX_VIRTUAL

	// Generated message map functions
protected:
	//{{AFX_MSG(CScriptOutputPane)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT32 nType, INT32 cx, INT32 cy);
	//}}AFX_MSG
	afx_msg void OnDBClk(NMHDR*pNotifyStruct,LRESULT*result);

	void OnScriptRun();
	void OnUpdateScriptRun(CCmdUI* pCmdUI);

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.


